#ifndef WIDGET_FUNCA_SMART_CHAT_H
#define WIDGET_FUNCA_SMART_CHAT_H

#include <QWidget>
#include "button_chat_send.h"
#include "deepseek_chat.h"
#include <QVBoxLayout>

namespace Ui {
class Widget_funcA_Smart_chat;
}

class Widget_funcA_Smart_chat : public QWidget
{
    Q_OBJECT
    
public:
    explicit Widget_funcA_Smart_chat(QWidget *parent = nullptr);
    ~Widget_funcA_Smart_chat();
    
    void addMessage(const QString &sender, const QString &message, bool isUser = false);
    
    Deepseek_Chat * deepseek;
protected slots:
    void resizeEvent(QResizeEvent *event) override;
    
    
    
private slots:
    void on_pushButton_clicked();
    
    void onTextChanged();
private:
    Ui::Widget_funcA_Smart_chat *ui;
    QWidget *messagesContainer;
    QVBoxLayout *messagesLayout;
    
};

#endif // WIDGET_FUNCA_SMART_CHAT_H
